feat: profile precision enhancement v2 — Beta confidence model with 44 fixes#152
Open
rookie136 wants to merge 1 commit into
Open
feat: profile precision enhancement v2 — Beta confidence model with 44 fixes#152rookie136 wants to merge 1 commit into
rookie136 wants to merge 1 commit into
Conversation
4c9e610 to
1022f81
Compare
…4 fixes Core changes: - Beta unified confidence model (syncConfidence, alpha/beta accumulation replaces confidence saturation) - mergeConfirmedMatch rename (combineItems → called only for confirmed matches) - forced merge / cross-validation use direct field manipulation (avoid alpha desync) - Thompson weak-hit sampling uses isolated weakAlpha/weakBeta - Semantic dedup pass: deduplicateItems + checkSemanticDuplicate + pair cache LRU - pendingValidation cross-batch confirmation + lazy migration - Remove capConfidences / applyConfidenceDecay / decayWeakHits dead code - Validator extended: 5-value verdict + patterns coverage + oversimplified → evolve - Injection quality: dedupByCategory + scoreByRecency + workflow context anchor - AI-cleanup preserveKeys updated for Beta fields + alpha accumulation - Bug fixes: P3 retry path decay, P10 evolve evidence threshold >= 3 Deployment results (2026-07-03): - confidence distribution: 0.42~0.99 (distinguishable) - 0 saturation events - dedup: steady-state 0 LLM calls per cycle - 0 decay false positives - Thompson weak/familiar isolation correct - injection: 5-dimension full coverage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive upgrade from linear confidence model to Beta posterior model, plus injection quality improvements, semantic deduplication, Thompson sampling isolation, and validator extensions.
Core Changes
Beta Confidence Model
syncConfidence(item):confidence = alpha/(alpha+beta) × min(timeFactor, trendMultiplier)lazyMigrateAlpha: detects legacy Thompson prior (0.5, 1.5) and migrates to evidence-based alphaMerge Method Constraints
combineItems→mergeConfirmedMatch: only called by exact/strong/weak-upgradecombineThree: alpha=a1+a2+1, beta=b1+b2, frequency=f1+f2+1Thompson Sampling (Isolated)
weakAlpha/weakBetaDecay & Staleness
conf < 0.3hard thresholdalpha ≤ 2 && age > 30 daysdecayWeakHits,applyConfidenceDecay,capConfidencesSemantic Deduplication
deduplicateItems: LLM checks same-category pairs with cos ≥ 0.50dedupCheckedCacheLRU (1000 limit)pendingValidation
pendingValidation = truealpha += 1.0+syncConfidenceValidator (5 verdicts)
Injection Quality
dedupByCategory+scoreByRecency(conf×0.7 + exp(-age/90)×0.3)Bug Fixes
Deployment Results (2026-07-03)